const express = require('express')

const app = express()

app.use(express.static(__dirname+'/static'))  // 指明静态资源所在路径

app.get('/test', (req, res) => {
    res.send({
        id: 111,
        name: 'lhyu'
    })
})

app.listen(5005, err => {
    if(!err) console.log('服务器启动成功了！')
})